#ifndef ADVANCEDOPTIONDATAACCESSOR_H
#define ADVANCEDOPTIONDATAACCESSOR_H

#include "../../Headers/Classes/db.h"
#include "../../Headers/Classes/advancedoption.h"

#include <QSqlTableModel>
#include <QSqlQuery>
#include <QString>
#include <QList>

class AdvancedOptionDataAccessor : public DB
{
public:
    AdvancedOptionDataAccessor(QString databaseName = "kursovik.sqlite");
    QSqlTableModel * getAdvancedOptions();
    QSqlTableModel * getAdvancedOptionsWithIgnored(QList<AdvancedOption*> ignoredOptions);
    QSqlTableModel * getAdvancedOptionsWithConsisted(QList<AdvancedOption*> options);
    bool setAdvancedOption(AdvancedOption option);
    AdvancedOption * getAdvancedOption(int id);
    bool deleteAdvancedOption(AdvancedOption option);
    bool editAdvancedOption(AdvancedOption option);
};

#endif // ADVANCEDOPTIONDATAACCESSOR_H
